package com.ztstkj.lzboard.jpush

import android.content.Context
import android.util.Log
import cn.jpush.android.api.CustomMessage
import cn.jpush.android.service.JPushMessageReceiver
import com.ztstkj.lzservices.events.EventJgPush
import org.greenrobot.eventbus.EventBus

class PushMessageService: JPushMessageReceiver() {
    private  val tag: String = "PushMessageService"

    override fun onMessage(context: Context, customMessage: CustomMessage) {
        Log.e(tag, "[onMessage] $customMessage")
        EventBus.getDefault().post(EventJgPush())
    }
}